import React from 'react';
function Btn(props) {
  // 1家，2公司，3默认，4其他 0空
  let { type } = props;
  let dom=<span> 全部</span>;
  switch (type) {
    case 1:
      dom= <span className="tag tag1"> 家</span>
      break;
    case 2:
      dom= <span className="tag tag2"> 公司</span>
      break;
    case 3:
      dom= <span className="tag tag3"> 默认</span>
      break;
    case 4:
      dom= <span className="tag tag4"> 其他</span>
      break;
    default:
      dom=""
      break;
  }
  return dom
}
export default Btn;